<template>
  <div>
    <div v-show="isShow" class="mask">
      <div class="loading"></div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      isShow: false
    }
  }
}
</script>

<style lang="scss" scoped>
@keyframes rotate {
    0% {
      transform: rotate(0deg);
    }
    100%{
      transform: rotate(360deg);
    }
  }
.mask{
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  .loading{
    width: 50px;
    height: 50px;
    border:10px solid #f66;
    border-radius: 40px;
    border-left-color:transparent;
    animation: rotate 1s infinite;
  }
}
</style>
